import Score from './score'

wx.onMessage((res) => {
  console.log(res)

  let score = res["score"]
  if (score !== undefined){
    let score_class = new Score()
    score_class.saveScore(score)
  }

  let last_score = res["last_score"]
  if (last_score !== undefined) {
    let score_class = new Score()
    score_class.lastSocre()
  }
})

